package com.matt.foundation.dto.teach;

import com.matt.domain.ContractProduct;
import lombok.Data;

/**
 * *******************************
 * Created by Ron.
 * form com.matt
 * on 2018/7/26
 * *******************************
 */
@Data
public class ProductDTO {
    private Integer type;
    private Double count;

    public static ProductDTO of(ContractProduct product){
        ProductDTO vo  = new ProductDTO();
        vo.setType(product.getProductType());
        vo.setCount(product.getCount());
        return vo;
    }

}
